﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VOL.Team.Comm
{
    /// <summary>
    /// APIResult类用于表示API调用的结果
    /// </summary>
    public class APIResult<T> where T : class
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public int Code { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 数据
        /// </summary>
        public T Data { get; set; }
        //public APIResult()
        //{
        //    Code = 200;
        //    Message = "操作成功";
        //    Data = null;
        //}
    }
}
